package com.example.baiduai.factroy;

import com.example.baiduai.dto.AIResult;
import com.example.baiduai.dto.AiDto;
import com.example.baiduai.hander.PayMannerHander;
import com.example.baiduai.hander.impl.ScanPayImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.stream.Collectors;

@Component
@Slf4j
public class PayMannerFactroy {

    @Autowired
    private ScanPayImpl scanPay;


    /**
     * 支付异常判断
     * @param dto
     * @return
     */
    public String payMannerJudgment(AiDto dto){
        String msg = scanPay.payMannerStatus(dto);
        log.info("【支付异常判断 】msg={}",msg);
        return msg;
    }

}
